const initialState = {}

export default (state = initialState, { type, payload }) => {

  switch (type) {

    case 'login':
      console.log(payload);
      return { ...state, ...payload }

    default:
      return state
  }
}
